package de.fhtrier.gdw2.ships.network;

import de.fhtrier.gdw.commons.netcode.datagram.INetDatagram;

/**
 *
 * @author Lusito
 */
public abstract class NetGame {
	public static String defaultIP = "localhost";
	public static int defaultPort = 49999;
	public static String defaultName = "Player";

	public boolean isClient() {
		return false;
	}

	public boolean isServer() {
		return false;
	}

	public abstract void shutdown();

	public abstract void handleIncoming();

	public abstract void handleOutgoing();
	
	public abstract void send(INetDatagram datagram);

	public abstract void sendEvent(byte type, short id, short param1, short param2);
}
